﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminSite/AdminSite.Master" AutoEventWireup="true"
    CodeBehind="ChangePass.aspx.cs" Inherits="InsuranceVehicle.AdminSite.ChangePass" %>

<%@ Register Src="Menu.ascx" TagName="Menu" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="pageTitle" runat="server">
    Change Password
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="menuPlace" runat="server">
    <uc1:Menu ID="Menu1" runat="server" SelectedMenu="change_pass" ShowElement="all" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="breadCrumb" runat="server">
    Change Password
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="titleContent" runat="server">
    Change Password
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="mainContent" runat="server">
    <div class="contentinner">
        <asp:Panel ID="panelUpdatePass" runat="server">
            <h4 class="widgettitle nomargin shadowed">
                Change password</h4>
            <div class="widgetcontent bordered shadowed nopadding">
                <div class="stdform stdform2">
                    <p>
                        <label>
                            Old Password</label>
                        <span class="field">
                            <asp:TextBox ID="txtOldPass" CssClass="input-xlarge" runat="server" TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Old password is not empty"
                                ControlToValidate="txtOldPass" Display="Dynamic" Font-Italic="True" ForeColor="Red"
                                SetFocusOnError="True"></asp:RequiredFieldValidator>
                            <asp:Label ID="lblErrOldPass" Visible="False" runat="server" Font-Italic="True" ForeColor="Red"></asp:Label>
                        </span>
                    </p>
                    <p>
                        <label>
                            New Pasword</label>
                        <span class="field">
                            <asp:TextBox ID="txtNewPassword" CssClass="input-xlarge" runat="server" TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="New password is not empty"
                                ControlToValidate="txtNewPassword" Display="Dynamic" Font-Italic="True" ForeColor="Red"
                                SetFocusOnError="True"></asp:RequiredFieldValidator>
                            <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="New password and Confirm password is not match"
                                ControlToCompare="txtConPass" ControlToValidate="txtNewPassword" Display="Dynamic"
                                Font-Italic="True" ForeColor="Red"></asp:CompareValidator>
                        </span>
                    </p>
                    <p>
                        <label>
                            Confirm Password</label>
                        <span class="field">
                            <asp:TextBox ID="txtConPass" CssClass="input-xlarge" runat="server" TextMode="Password"></asp:TextBox>
                        </span>
                    </p>
                    <p class="stdformbutton">
                        <asp:Button ID="btnChangePass" runat="server" Text="Change Password" class="btn btn-primary"
                            Width="140px" CausesValidation="true" OnClick="btnChangePass_Click" />
                        <asp:Label ID="lblSuccess" Visible="False" runat="server" Font-Italic="True" ForeColor="Red"></asp:Label>
                    </p>
                </div>
            </div>
        </asp:Panel>
    </div>
</asp:Content>
